package cn.gemiman.daoyi.module.cms.controller.admin.articlecategory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.gemiman.daoyi.framework.excel.core.annotations.DictFormat;
import cn.gemiman.daoyi.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 文章栏目 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CmsArticleCategoryRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14198")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "站点编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30231")
    @ExcelProperty("站点编号")
    private Long appSiteId;

    @Schema(description = "站点标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "31689")
    @ExcelProperty("站点标识")
    private String appId;

    @Schema(description = "父级栏目", requiredMode = Schema.RequiredMode.REQUIRED, example = "22453")
    @ExcelProperty("父级栏目")
    private Long parentId;

    @Schema(description = "栏目标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("栏目标题")
    private String title;

    @Schema(description = "副标题")
    @ExcelProperty("副标题")
    private String subTitle;

    @Schema(description = "图标", example = "https://www.iocoder.cn")
    @ExcelProperty("图标")
    private String iconUrl;

    @Schema(description = "栏目相册")
    @ExcelProperty("栏目相册")
    private List<String> categoryPhotos;

    @Schema(description = "栏目简介")
    @ExcelProperty("栏目简介")
    private String categoryShortDesc;

    @Schema(description = "栏目介绍", example = "你猜")
    @ExcelProperty("栏目介绍")
    private String categoryDescription;

    @Schema(description = "导航栏", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "导航栏", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean navBar;

    @Schema(description = "栏目状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "栏目状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "点击量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("点击量")
    private Integer viewNum;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "点赞数量")
    private Long thumbsUpTimes = 0L;

}
